﻿using ARchGL.Platform.Dtos;
using System;
using Abp.Application.Services.Dto;
using System.Collections.Generic;

namespace ARchGL.Platform.Juneng.ViewDtos
{
    public class ProjectsDto : EntityDto<Guid>
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 项目类型：(选项)安装工程1/地灾设计2/地灾施工工程3/房建工程4/非煤矿山5/钢结构工程6/公路工程7/矿建工程8/桥梁工程9/市政工程10/水利电力工程11/隧道工程12/铁路工程13/土地政治工程14/土石方工程15/消防工程16/装饰工程17/综合18/其他19
        /// </summary>
        public EnumProjectType Type { get; set; }

        /// <summary>
        /// 状态(选项)勘探1/可研2/立项3/投标4
        /// </summary>
        public EnumProjectStatus Status { get; set; }
        /// <summary>
        /// 图片地址
        /// </summary>
        public string ImageUrl { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 是否关注 1是/2否
        /// </summary>
        public EnumTrue Mark { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 项目创建人编号
        /// </summary>
        public Guid? CreatorUserId { get; set; }
        /// <summary>
        /// 创建时间戳
        /// </summary>
        public long CreationUniversalTime { get { return CreationTime.ToUnixTimestamp(); } }
        /// <summary>
        /// 地图坐标：X,Y
        /// </summary>
        public string Location { get; set; }

        /// <summary>
        /// 所属机构(文本)
        /// </summary>
        public string DepartName { get; set; }
        /// <summary>
        /// 投资总额（万）
        /// </summary>
        public decimal? TotalInCome { get; set; }
        /// <summary>
        /// 工期(文本)
        /// </summary>
        public string TakeLimit { get; set; }
        /// <summary>
        /// 是否重点(选项)是1/否2
        /// </summary>
        public EnumTrue IsImportant { get; set; }
        /// <summary>
        /// 是否立项(选项)是1/否2
        /// </summary>
        public EnumTrue IsApprove { get; set; }

        /// <summary>
        /// 建设单位(文本)
        /// </summary>
        public string CompanyName { get; set; }
        /// <summary>
        /// 建设单位联系人(文本)
        /// </summary>
        public string CompanyLinkman { get; set; }
        /// <summary>
        /// 建设单位联系电话(文本)
        /// </summary>
        public string CompanyLinkphone { get; set; }
        /// <summary>
        /// 建设单位联系地址(文本)
        /// </summary>
        public string CompanyAddress { get; set; }
        /// <summary>
        /// 权限点
        /// </summary>
        public List<string> PermissionArray { get; set; }
    }
}
